﻿#ifndef USERINFO_H
#define USERINFO_H

#include <QObject>
#include <QPixmap>

class UserInfo : public QObject
{
    Q_OBJECT
public:
    static UserInfo* getInstance()
    {
        static UserInfo instance;
        return &instance;
    }
    explicit UserInfo(QObject *parent = nullptr);

    void AddUser(const QString &account, const QPixmap &photo);

    QPixmap GetPhoto(const QString &account);

private:
    QString dirpath;
};

#endif // USERINFO_H
